<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单备注_{$webname}</title>
<!--公共样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/css/reset.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/css/common.css">
<!--公共样式结束-->
<!--私有样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/css/page_order.css">
<!--私有样式结束-->
<!--FontAwesome开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/plugins/FontAwesome/css/font-awesome.min.css">
<!--FontAwesome结束-->
<!--核心JS开始-->
<script src="{$NOW_THEME_URL}/Assets/js/jquery.min.js"></script>
<script src="__PUBLIC__/Js/jquery-migrate-1.2.1.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/Plugins/artDialog/jquery.artdialog.js?skin=bootstrap"></script>
<script type="text/javascript" src="__PUBLIC__/Plugins/artDialog/plugins/iframeTools.js"></script>
<!--核心JS结束-->
<script type="text/javascript">
	$(function(){
		$('#goBack').on('click',function(){
			window.history.back();
		});
		
		/*右侧导航点击事件*/
		$('.hb_right').click(function(){
			$(".wrapper").toggleClass("a");
			$(".nav_box").toggleClass("b");
		});
		
		/*右侧导航二级*/
		$('.erji').click(function(){
			$(this).find("ul").toggleClass("c");
		});
	});
</script>
<style type="text/css">
#relationOutlet{
	line-height:40px;
	text-align:left;
}
#relationOutlet div{
	margin-bottom:5px;
}
#relationOutlet div span{
	font-size:14px;
	font-weight:bold;
}
 #relationOutlet option{
	width:100px;
	height:25px;
	line-height:25px;
}
#relationOutlet em{
	font-style:normal;
	font-size:16px;
}
#relationOutlet .fenp_b{
	width:200px;
	height:30px;
	line-height:30px;
	border:none;
	background:#21AB38;
	color:#FFF;
	text-align:center;
	font-size:16px;
	border-radius:3px;
	margin-top:20px;
}
.form_ele{
	border:1px solid #CCCCCC;
	padding:2px;
	width:180px;
}

</style>
</head>
<body>
<!-- 头部开始-->
<include file="Public:header"/>
<!-- 头部结束-->
<!--主体开始-->
<div id="pageHome">
	<!--主体盒子开始-->
    <div id="wrapper" class="wrapper radius_5 bg_white">
		<form id="relationOutlet">
			<input type="hidden" name="id" value="{$row.id}">
			<div><span>订单编号:</span>{$row.orderno}</div>
			<div><span>订单地址:</span>{$row.address}</div>
			<div><span>备注金额：</span><input type="text" name="price"   placeholder="备注金额可不填写" class="form_ele"></div>
			<div><span>计算方式：</span>
				<select class="" name="opera">
					<option value="plus">增加</option>
					<option value="minus" selected>减少</option>
				</select>
			</div>
			<div><span>备注内容：</span><textarea class="form_ele" name="remark" rows="3" placeholder="请填写备注内容"></textarea></div>
				
			<div style="text-align:center"><input class="fenp_b" type="button" id="confirm" value="提交" /></div>
		</form>

<script>
function submitForm(){
	
	var data = $('#relationOutlet').serialize();
	
	if(data.remark==""){
		alert('请输入备注内容');return;
	}
	$.post("{:U('Order/order_bak')}",data,function(data){
		if(data.status == 1){
			alert('订单备注成功');
			//var url = "{:U('Order/order_index')}";
			var url = "{:U('Order/order_detail')}&id={$row.id}";
			window.location.href=url;
		}else{
			alert(data.info);
		}
	});
}

$(function(){
	
	$('#confirm').on("click",function(){
		submitForm();
	});
});
</script>

    </div>
    <!--主体盒子结束 -->
    <!--导航盒子开始-->
    <include file="Public:menu" />
    <!--导航盒子结束-->
</div>
<!--主体结束-->
</body>
</html>